package mall.service;

import java.util.List;

import mall.dao.ShopDAO;
import mall.pojo.Shop;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class ShopServiceImpl implements ShopService {
	
	@Autowired
	private ShopDAO shopDAO;
	
	@Override
	@Transactional
	public List<Shop> listShop(int industryId) {
		return shopDAO.getListShop(industryId);
	}
	@Override
	@Transactional
	public void createShop(Shop shop) {
		shopDAO.createShop(shop);
	}
	@Override
	@Transactional
	public Shop getShop(int shopId) {
		return shopDAO.getShop(shopId);
	}

}
